import request from '@/utils/request'

// 查询业务字典明细列表
export function listEnumeration(query) {
  return request({
    url: '/ehr/enumeration/list',
    method: 'get',
    params: query
  })
}

// 查询业务字典明细详细
export function getEnumeration(enumId) {
  return request({
    url: '/ehr/enumeration/' + enumId,
    method: 'get'
  })
}

// 新增业务字典明细
export function addEnumeration(data) {
  return request({
    url: '/ehr/enumeration',
    method: 'post',
    data: data
  })
}

// 修改业务字典明细
export function updateEnumeration(data) {
  return request({
    url: '/ehr/enumeration',
    method: 'put',
    data: data
  })
}

// 删除业务字典明细
export function delEnumeration(enumId) {
  return request({
    url: '/ehr/enumeration/' + enumId,
    method: 'delete'
  })
}
